home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Online / NNTPd / server / help.c < prev    next >
Encoding:
C/C++ Source or Header  |  2002-12-03  |  1.3 KB  |  48 lines

  1. #ifndef lint
  2. static char    sccsid[] = "@(#)$Id: help.c,v 1.12 1994/12/03 21:54:30 sob Exp sob $";
  3. #endif
  4.  
  5. #include "common.h"
  6.  
  7. /*
  8.  * HELP
  9.  *
  10.  * Provide a naive user with a brief help message.
  11.  *
  12.  */
  13.  
  14. void
  15. help(argc, argv)
  16. int    argc;
  17. char    *argv[];
  18. {
  19.     printf("%d This server accepts the following commands:\r\n", INF_HELP);
  20.     printf("ARTICLE     BODY         GROUP\r\n");
  21.     printf("HEAD        LAST         LIST\r\n");
  22.     printf("NEXT        POST         QUIT\r\n");
  23.     printf("STAT        NEWGROUPS    HELP\r\n");
  24.     printf("IHAVE       NEWNEWS      SLAVE\r\n");
  25.     printf("DATE\r\n");
  26.     printf("\r\nAdditionally, the following extensions are supported:\r\n\r\n");
  27. #ifdef    XHDR
  28.     printf("XHDR        Retrieve a single header line from a range of articles.\r\n");
  29. #endif
  30. #ifdef LISTGROUP
  31.     printf("LISTGROUP   Retrieve a list of valid article-numbers.\r\n");
  32. #endif
  33. #ifdef    XOVER
  34.     printf("XOVER       Return news overview data.\r\n");
  35. #endif
  36.     printf("XGTITLE     Same as LIST NEWSGROUPS (for backward compatibility).\r\n");
  37. #ifdef XINDEX
  38.     printf("XINDEX      Retrieve a tin style index file.\r\n");
  39. #endif    
  40. #ifdef    XTHREAD
  41.     printf("XTHREAD     Retrieve trn thread file for the current group.\r\n");
  42. #endif
  43.     printf("\r\n");
  44.     printf("Bugs to Stan Barber (Internet: nntp@academ.com)\r\n");
  45.     printf(".\r\n");
  46.     (void) fflush(stdout);
  47. }
  48.